Interrupt 21h Function 71A6h
Retrieves
information about the specified file.
mov ax, 71a6h ; Get File Info By Handle
mov bx, Handle ; see below
mov dx, seg lpFileInfo ; see below
mov ds, dx
mov dx, offset lpFileInfo
stc ; must set carry flag
int 21h
jnc success
cmp ax, 7100h
je not_supported
Parameters
Handle
File handle
to retrieve information about.
lpFileInfo
Address of a BY_HANDLE_FILE_INFORMATION
Return Value
Clears the
carry flag if successful. Otherwise, the function sets the carry flag and sets
the AX register to an error value.
Remarks
Note
that it is important to explicitly set the carry flag before calling this
function.